/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core.messages;
import java.io.Serializable;

/**
 * Msg抽象类
 * @author Invince
 */
public class Msg implements Serializable {//序列化，socket传object一定要
/*----------Attributs-------------------*/
    /**
     * 发送人的名字，注意用的是Player的name（或者是"Server"字段）
     */
    protected String sender;
/*----------Public functions------------*/
/*----------Private functions-----------*/
/*----------Constructor-----------------*/
    public Msg(String sender) {
        this.sender = sender;
    }

/*----------Gets and sets---------------*/
    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }
}
